package com.pp.proposalPrint.shared;

public class Materials extends ProposalContentList<Material> {

	// Returns 10% of the sum of materials (procurement cost)
	public float getProcExp() {
		return (float) (getSum()*0.1);
	}

	// Returns the total sum (sum of materials + procurement cost)
	@Override
	public float getTotalSum() {
		return getSum()+getProcExp();
	}

	@Override
	public Material getNewContent() {
		return new Material("Material", 1, 0);
	}
}
